#pragma once

#include <frpc.pb.h>


namespace WFTask{
    using DB_cb_t = std::function<void(int error_code,const char* errorstr)>;
    struct DBResult{
        int error_code;
        const char* error_str;
    };
void GetCollectionList(uint64_t* userid,frpcType::CollectionArray* response,DB_cb_t);

void GetExchangeList( frpcType::ExchangeArray* response, DB_cb_t);
void GetCollectionContent(uint64_t* userid,const frpcType::DefaultArg*,frpcType::ContractArray* ,DB_cb_t);
//void print_result(WFMySQLTask *task);
//void check_status(WFMySQLTask *task,Frpc::Reply* rep);
//void reply_collections(WFMySQLTask *task);
//void reply_collectionitems(WFMySQLTask *task);
}
